package com.wgy.blog.mapper;

import com.wgy.blog.pojo.Label;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LabelMapper {

    List<Label> findAll();

    /**
     * delete by primary key
     * @param labelId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long labelId);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(Label record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(Label record);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    Label selectByPrimaryKey(Integer id);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Label record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Label record);

    List<Label> find();

}